import React from "react";

export default function LocationOptions(props) {
  const { value } = props;
  //定位字段
  let locationObj = {};
  if (typeof value === "string" && value.trim() !== "") {
    try {
      locationObj = JSON.parse(value);
    } catch (error) {
      console.error("地区字段异常:", error);
    }
  }

  return (
    <div title={locationObj.address || ""}> {locationObj.address || ""}</div>
  );
}
